package cn.fengkuok.jantis.user.domian.logic.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.fengkuok.core.orm.Page;
import cn.fengkuok.jantis.user.dao.UserDao;
import cn.fengkuok.jantis.user.domian.logic.UserService;
import cn.fengkuok.jantis.user.domian.model.User;

@Service(UserService.NAME)
public class UserServiceImpl implements UserService{

	@Resource
	private UserDao userDao;
	
	@Override
	public boolean checkLogin(User user) {
		User loginUser = userDao.findForCheckLogin(user);
		if(loginUser != null){
			return true;
		}
		return false;
	}
	
	@Override
	public Page<User> pagedQuery(Page<User> page) {
		// TODO Auto-generated method stub
		return null;
	}

	public User find(Long id) {
		return userDao.get(id);
	}

	@Override
	public String remove(User entity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String saveOrUpdate(User entity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void refresh(User entity) {
		// TODO Auto-generated method stub
		
	}

	


}
